import request from '@/utils/http'
// import qs from 'qs'

export function youxianSpaceInfoList (params) {
  return request({
    url: '/personalityDataInfo/youxianSpaceInfoList',
    method: 'GET',
    params
  })
}
export function saveOrUpdateYouxianSpaceInfo (params) {
  return request({
    url: '/personalityDataInfo/saveOrUpdateYouxianSpaceInfo',
    method: 'POST',
    data:params
  })
}
export function deleteYouxianSpaceInfo (params) {
  return request({
    url: '/personalityDataInfo/deleteYouxianSpaceInfo',
    method: 'DELETE',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded' // 设置为JSON格式
    }
  })
}

export function youxianSpaceRecordList (params) {
  return request({
    url: '/personalityDataInfo/youxianSpaceRecordList',
    method: 'GET',
    params
  })
}

export function saveOrUpdateYouxianSpaceRecord (params) {
  return request({
    url: '/personalityDataInfo/saveOrUpdateYouxianSpaceRecord',
    method: 'POST',
    data:params
  })
}
export function deleteYouxianSpaceRecord (params) {
  return request({
    url: '/personalityDataInfo/deleteYouxianSpaceRecord',
    method: 'DELETE',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded' // 设置为JSON格式
    }
  })
}


export function youxianSpaceEquipInfoList (params) {
  return request({
    url: '/personalityDataInfo/youxianSpaceEquipInfoList',
    method: 'GET',
    params
  })
}

export function saveOrUpdateYouxianSpaceEquipInfo (params) {
  return request({
    url: '/personalityDataInfo/saveOrUpdateYouxianSpaceEquipInfo',
    method: 'POST',
    data:params
  })
}
export function deleteYouxianSpaceEquipInfo (params) {
  return request({
    url: '/personalityDataInfo/deleteYouxianSpaceEquipInfo',
    method: 'DELETE',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded' // 设置为JSON格式
    }
  })
}
export function youxianDataCollectionDeviceInfoList (params) {
  return request({
    url: '/personalityDataInfo/youxianDataCollectionDeviceInfoList',
    method: 'GET',
    params
  })
}

export function saveOrUpdateYouxianDataCollectionDeviceInfo (params) {
  return request({
    url: '/personalityDataInfo/saveOrUpdateYouxianDataCollectionDeviceInfo',
    method: 'POST',
    data:params
  })
}
export function deleteYouxianDataCollectionDeviceInfo (params) {
  return request({
    url: '/personalityDataInfo/deleteYouxianDataCollectionDeviceInfo',
    method: 'DELETE',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded' // 设置为JSON格式
    }
  })
}